package com.dmyang.service;

import com.dmyang.common.pojo.BootstrapTableResult;
import com.dmyang.common.pojo.HyResult;
import com.dmyang.entity.HyArticle;

import java.util.List;

/**
 * Created by brss on 2017/8/7.
 */
public interface ArticleService {
    HyResult addArticle(HyArticle article) throws Exception;
    BootstrapTableResult showArticleList(Integer belong,Integer offset,Integer limit) throws Exception;
    HyResult deleteArticle(String ids) throws Exception;
    HyArticle findArticleById(Integer id) throws Exception;
    HyResult modifyArticle(HyArticle article) throws Exception;
    List<HyArticle> showLastestArticle(Integer limit);
    List<HyArticle> showArticleByCate(Integer categoryId);
}
